 BigFoot_ModOptionConfig = {}; if (GetLocale() == "zhCN") then MOD_MANAGEMENT_TAB_1="所有功能"; MOD_MANAGEMENT_TAB_2="战斗增强"; MOD_MANAGEMENT_TAB_3="界面增强"; MOD_MANAGEMENT_TAB_4="组队团队"; MOD_MANAGEMENT_TAB_5="商业物品"; MOD_MANAGEMENT_TAB_6="地图任务"; MOD_MANAGEMENT_TAB_7="辅助工具"; MOD_MANAGEMENT_FRAME_TITLE = "大脚设置"; MOD_MANAGEMENT_PREV_TEXT = "上一页"; MOD_MANAGEMENT_NEXT_TEXT = "下一页"; MOD_MANAGEMENT_WELCOME_TEXT = "http://bigfoot.178.com\n\nhttp://wow.178.com\n\n\n欢迎使用大脚(BigFoot)插件，这是大脚插件的设置界面，您可以通过选择左侧的按钮来设定相关模块的参数。" MOD_MANAGEMENT_AD_TEXT = "|cff00c0c0%s已开启，本插件由178游戏网（www.178.com）提供。|r" MOD_MANAGEMENT_FONT = "Fonts\\ARKai_T.TTF"; MOD_MANAGEMENT_SEARCH_EMPTY = "无结果" MOD_MANAGEMENT_SEARCH_TEXT = "请输入搜索的功能..." BF_Change_NewButton ="切换至专业版" bf_RepairIng = "维修中。。。" BF_CHANGELOG_TEXT = "更新日志"; BF_AddOnsList_TEXT = "插件管理"; elseif (GetLocale() == "zhTW") then MOD_MANAGEMENT_TAB_1="所有功能"; MOD_MANAGEMENT_TAB_2="戰鬥增強"; MOD_MANAGEMENT_TAB_3="介面增強"; MOD_MANAGEMENT_TAB_4="組隊團隊"; MOD_MANAGEMENT_TAB_5="商業物品"; MOD_MANAGEMENT_TAB_6="地圖任務"; MOD_MANAGEMENT_TAB_7="輔助工具"; MOD_MANAGEMENT_FRAME_TITLE = "大腳設置"; MOD_MANAGEMENT_PREV_TEXT = "上一頁"; MOD_MANAGEMENT_NEXT_TEXT = "下一頁"; MOD_MANAGEMENT_WELCOME_TEXT = "http://bigfoot.178.com\nhttp://wow.178.com\n\n\歡迎使用大腳(BigFoot)插件，這是大腳插件的設置界面，您可以透過選擇左側的按鈕來設定相關模塊的參數。" MOD_MANAGEMENT_AD_TEXT = "|cff20ff20%s已開啟，本插件由178遊戲網（www.178.com）提供。|r" MOD_MANAGEMENT_FONT = "Fonts\\bLEI00D.TTF"; MOD_MANAGEMENT_SEARCH_EMPTY = "无结果" MOD_MANAGEMENT_SEARCH_TEXT = "請輸入搜索的功能..." BF_Change_NewButton ="切換至專業版" bf_RepairIng = "維修中。。。" BF_CHANGELOG_TEXT = "更新日誌"; BF_AddOnsList_TEXT = "插件管理"; else MOD_MANAGEMENT_TAB_1="All functions"; MOD_MANAGEMENT_TAB_2="Combat enhance"; MOD_MANAGEMENT_TAB_3="UI enhance"; MOD_MANAGEMENT_TAB_4="Team and Guild"; MOD_MANAGEMENT_TAB_5="Trade and Goods"; MOD_MANAGEMENT_TAB_6="Map and Quests"; MOD_MANAGEMENT_TAB_7="Utilities"; MOD_MANAGEMENT_FRAME_TITLE = "BigFoot Setup"; MOD_MANAGEMENT_PREV_TEXT = "Prev"; MOD_MANAGEMENT_NEXT_TEXT = "Next"; MOD_MANAGEMENT_WELCOME_TEXT = "http://bigfoot.178.com\nhttp://wow.178.com\n\n\Welcome to BigFoot AddOns. This page you see is the control panel, you can modify options by clicking buttons on the leftside." MOD_MANAGEMENT_AD_TEXT = "|cff20ff20%s is enabled, This AddOns is provided to you by 178 Gaming(www.178.com).|r" MOD_MANAGEMENT_FONT = "Fonts\\ARIALN.TTF"; MOD_MANAGEMENT_SEARCH_EMPTY = "No Results" MOD_MANAGEMENT_SEARCH_TEXT = "Please Insert your keyword..." bf_RepairIng = "RepairIng..." BF_CHANGELOG_TEXT = "ChangeLog"; BF_AddOnsList_TEXT = "AddOnsList"; end local BFMManage_492cd416987e0d92457bfeb0e6c1d6ea = 24; local BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2 = 12; local BFMManage_c0f398ee197de9cd7285479985e22494 = 6; local BFMManage_6953b2e4d6710c36e11df69825d6ce1f = 20; local BFMManage_29ab8a01af486ec717579377ead3adb2 = 10; local BFMManage_31064ed6053563897041665f34248604 = {}; local showedEntriesTable = {} local BFMManage_7a9eaaf93ef7c8a058d8e7841b726add = {}; local BigFoot_ModIndexList; local BFMManage_bdf5390627ce5a4b3179bab176fd094f,BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc local BFMManage_8ada1e5f1cf8232461562168fef4081a; function IsLegalSearchText(text) if strlen(text) >= 3 and strlen(text) < 20 then return true end return false end function ModManagementFrame_OnLoad(self) ModManagementFrame:SetAttribute("UIPanelLayout-defined", true); ModManagementFrame:SetAttribute("UIPanelLayout-area", "center"); ModManagementFrame:SetAttribute("UIPanelLayout-pushable", 0); ModManagementFrame:SetAttribute("UIPanelLayout-enabled", true); local search = BLibrary("BFSearch", ModManagementFrame, 155, 23,MOD_MANAGEMENT_SEARCH_TEXT); search:SetPoint("TOPLEFT",ModManagementFrame,"TOPLEFT",394,-28) search.validation = IsLegalSearchText search.peek = ModManageMentFrame_SearchPeek search.onEmpty = function() end search.callback = function(text) ModManagementFrame_SearchMod(text) ModManagementFrame_SearchEntries(text) end search:Show(); end function ModManagementFrame_OnEvent(self, event) end local function TestModNeedNotify(needNotify, notifyVersion, checkedVersion) if not needNotify then return false end if not notifyVersion then return false end if not checkedVersion then return true end if notifyVersion > checkedVersion then return true end return false; end local function ModButton_HasUpdate(self) if not self.relativedMod or not BigFoot_Config[self.relativedMod] then return false end local checkedVersion = BigFoot_Config[self.relativedMod].checkedVersion return TestModNeedNotify(self.mod.needNotify,self.mod.notifyVersion,checkedVersion) end local function ModButton_ResetNotify(self) if self.relativedMod and BigFoot_Config[self.relativedMod] then BigFoot_Config[self.relativedMod].checkedVersion = GetMinorVersion() end end --[[ local maxShines = 1; local modButtonShines = {} local function ModButton_GetAutoCastShine() local shine = modButtonShines[1]; if shine then tremove(modButtonShines, 1); else shine = CreateFrame("FRAME", "ModButtonACShine" .. maxShines, ModManagementFrame, "SpellBookShineTemplate"); shine:SetWidth(110) shine:SetHeight(30) maxShines = maxShines + 1; end return shine end local function ModButton_ReleaseAutoCastShine(shine) if not shine then return end shine:Hide() AutoCastShine_AutoCastStop(shine) tinsert(modButtonShines,shine); end function ModButton_OnUpdate(self,elapsed) if ModButton_HasUpdate(self) then if not self.shine then self.shine = ModButton_GetAutoCastShine() end self.shine:SetParent(self); self.shine:SetPoint("TOPLEFT", self, "TOPLEFT"); self.shine:Show(); AutoCastShine_AutoCastStart(self.shine); else ModButton_ReleaseAutoCastShine(self.shine); self.shine = nil; end end ]] local function BFMManage_f716e79d0c15aecfcb7d55dbea94bc8c(BFMManage_7193346511e6cfd5aa01fac54f2cd168, BFMManage_3f50417fb16be9b1078eb68d24fa9c26) local BFMManage_56f04248423194aed6ab35b65fe74f1e = getglobal("ModPrevPageButton"); local BFMManage_7b2dc422931bb841b195169d1d8c66fe = getglobal("ModNextPageButton"); if ( BFMManage_7193346511e6cfd5aa01fac54f2cd168 <= 1 ) then BFMManage_56f04248423194aed6ab35b65fe74f1e:Disable(); BFMManage_56f04248423194aed6ab35b65fe74f1e.Texture:SetDesaturated(true); BFMManage_56f04248423194aed6ab35b65fe74f1e.Text:SetTextColor(0.703125, 0.703125, 0.703125); else BFMManage_56f04248423194aed6ab35b65fe74f1e:Enable(); BFMManage_56f04248423194aed6ab35b65fe74f1e.Texture:SetDesaturated(false); BFMManage_56f04248423194aed6ab35b65fe74f1e.Text:SetTextColor(1, 0.8828125, 0.61328125); end if ( BFMManage_3f50417fb16be9b1078eb68d24fa9c26 <= BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2*BFMManage_7193346511e6cfd5aa01fac54f2cd168 ) then BFMManage_7b2dc422931bb841b195169d1d8c66fe:Disable(); BFMManage_7b2dc422931bb841b195169d1d8c66fe.Texture:SetDesaturated(true); BFMManage_7b2dc422931bb841b195169d1d8c66fe.Text:SetTextColor(0.703125, 0.703125, 0.703125); else BFMManage_7b2dc422931bb841b195169d1d8c66fe:Enable(); BFMManage_7b2dc422931bb841b195169d1d8c66fe.Texture:SetDesaturated(false); BFMManage_7b2dc422931bb841b195169d1d8c66fe.Text:SetTextColor(1, 0.8828125, 0.61328125); end end local function BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(BFMManage_7193346511e6cfd5aa01fac54f2cd168,BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3) if ( BFMManage_bdf5390627ce5a4b3179bab176fd094f == BFMManage_7193346511e6cfd5aa01fac54f2cd168 and BFMManage_5312283bf477e6572db2fbf0e8bc478f==BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3 and BFMManage_5312283bf477e6572db2fbf0e8bc478f ~= 8) then return; end BFMManage_12a7f20fc74d7ad4ff92606ccc846037(); BFMManage_61beeb4a5cb9901dd878bbead4555a4d(); BFMManage_dd43ceb26f2f853fcae22d9619912151(); local BFMManage_ed2434aa06196eb0764ccd3c3a8414be = table.maxn(BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3]); if ( BFMManage_ed2434aa06196eb0764ccd3c3a8414be < BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2*(BFMManage_7193346511e6cfd5aa01fac54f2cd168-1) ) then return; end local __index = BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2*(BFMManage_7193346511e6cfd5aa01fac54f2cd168-1) + 1; for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = __index, __index + BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2, 1 do if (BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3][BFMManage_e914904fab9d05d3f54d52bfc31a0f3f]) then local BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd = BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3][BFMManage_e914904fab9d05d3f54d52bfc31a0f3f].name; if ( BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd ) then local BFMManage_3bb367e1f150a93c099e99df8d49e180 = BFMManage_7a9eaaf93ef7c8a058d8e7841b726add[BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd]; BFMManage_4d49ff675a7177dc17043da363b0888a(BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd, BFMManage_3bb367e1f150a93c099e99df8d49e180, BFMManage_3bb367e1f150a93c099e99df8d49e180.texture, BFMManage_3bb367e1f150a93c099e99df8d49e180.text, BFMManage_3bb367e1f150a93c099e99df8d49e180.subText, BFMManage_3bb367e1f150a93c099e99df8d49e180.tooltip,BFMManage_3bb367e1f150a93c099e99df8d49e180.needNotify,BFMManage_3bb367e1f150a93c099e99df8d49e180.notifyVersion); end end end for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModButton"..BFMManage_e914904fab9d05d3f54d52bfc31a0f3f); local BFMManage_30b6f278098f3fa7bf562ea6d5620a66 = BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetChecked(); if ( BFMManage_30b6f278098f3fa7bf562ea6d5620a66 and BFMManage_30b6f278098f3fa7bf562ea6d5620a66 ~= 0 ) then if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.relativedMod ~= BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:SetChecked(false); end else if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.relativedMod and BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.relativedMod == BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:SetChecked(1); end end if not ModButton_HasUpdate(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) then ModButton_ResetNotify(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) end end BFMManage_bdf5390627ce5a4b3179bab176fd094f = BFMManage_7193346511e6cfd5aa01fac54f2cd168; BFMManage_5312283bf477e6572db2fbf0e8bc478f = BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3; ModManagementPageText:SetText(BFMManage_7193346511e6cfd5aa01fac54f2cd168); BFMManage_f716e79d0c15aecfcb7d55dbea94bc8c(BFMManage_7193346511e6cfd5aa01fac54f2cd168, BFMManage_ed2434aa06196eb0764ccd3c3a8414be); BFMManage_9c0fc90932653e118421125643f92c0e,BFMManage_b6ecf77cd26e3a47a9c147418baa718a = BFMManage_7193346511e6cfd5aa01fac54f2cd168,BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3 end function ModManagementFrame_OnShow(self) ModPrevPageButtonText:SetText(MOD_MANAGEMENT_PREV_TEXT); ModNextPageButtonText:SetText(MOD_MANAGEMENT_NEXT_TEXT); BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc = nil; BFMManage_bdf5390627ce5a4b3179bab176fd094f = nil; BFMManage_5312283bf477e6572db2fbf0e8bc478f = nil; BFMManage_12a7f20fc74d7ad4ff92606ccc846037(); BFMManage_dd43ceb26f2f853fcae22d9619912151(); BFMManage_68746fe9efe2a7a4b30b215991e87bda() BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(BFMManage_9c0fc90932653e118421125643f92c0e or 1,BFMManage_b6ecf77cd26e3a47a9c147418baa718a or 1) end function BFMManage_4d49ff675a7177dc17043da363b0888a(BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd,__mod, BFMManage_d96ea4cb5b803524730b47b3dc53573c, BFMManage_f5948dc7f6c4a3da1d8af49fd8bb6d5d, BFMManage_a529bfc214cfa5f7a0b2f805abf0e737, BFMManage_6c162b1123a1eb57c1827271b32b6959,BFMManage_cc4099afe63abc3cc7e2ee2f7a940ed0,BFMManage_066da22fe5788148e20ca4dee34e4355) for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModButton"..BFMManage_e914904fab9d05d3f54d52bfc31a0f3f); local BFMManage_9248008bbb6d0ee7ce13f6ee45680051 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."IconTexture"); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."ModName"); local BFMManage_1f8f756ad78ea47fd6befbe88ce49a67 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."SubModName"); if ( not BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.beingUsed ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Show(); BFMManage_9248008bbb6d0ee7ce13f6ee45680051:SetTexture(BFMManage_d96ea4cb5b803524730b47b3dc53573c); BFMManage_9248008bbb6d0ee7ce13f6ee45680051:SetTexCoord(0.0625, 0.9375, 0.0625, 0.9375) BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_f5948dc7f6c4a3da1d8af49fd8bb6d5d); BFMManage_1f8f756ad78ea47fd6befbe88ce49a67:SetText(BFMManage_a529bfc214cfa5f7a0b2f805abf0e737); BFMManage_9248008bbb6d0ee7ce13f6ee45680051:Show(); BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:Show(); BFMManage_1f8f756ad78ea47fd6befbe88ce49a67:Show(); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.title = BFMManage_f5948dc7f6c4a3da1d8af49fd8bb6d5d; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.tooltip = BFMManage_6c162b1123a1eb57c1827271b32b6959; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.beingUsed = 1; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.relativedMod = BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.mod =__mod; return; end end end function BFMManage_b4d7b3f986c55f3f1f2b848d985c0029(BFMManage_d285ae0fc55c589ca8a11fede4ac2362, BFMManage_1ad0e6a4c91026007c0be948ef382073) if BFMManage_d285ae0fc55c589ca8a11fede4ac2362.priority ~= BFMManage_1ad0e6a4c91026007c0be948ef382073.priority then return BFMManage_d285ae0fc55c589ca8a11fede4ac2362.priority>BFMManage_1ad0e6a4c91026007c0be948ef382073.priority end local BFMManage_19bd98733d38d448ce9339a94b80ea1a = BFMManage_d285ae0fc55c589ca8a11fede4ac2362.sort or BFMManage_d285ae0fc55c589ca8a11fede4ac2362.text; local BFMManage_614ac8367e7a10142ccf2666a0d66e97 = BFMManage_1ad0e6a4c91026007c0be948ef382073.sort or BFMManage_1ad0e6a4c91026007c0be948ef382073.text; return (BFMManage_19bd98733d38d448ce9339a94b80ea1a < BFMManage_614ac8367e7a10142ccf2666a0d66e97); end function BFMManage_d645bf240a0ab0b1ccc6d69bbd460da5(BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3) local BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd, BFMManage_3bb367e1f150a93c099e99df8d49e180; if not BigFoot_ModIndexList then BigFoot_ModIndexList = {}; end BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3]={} for BFMManage_6a1080b3779c2c7583f231e8c6dfa9bd, BFMManage_3bb367e1f150a93c099e99df8d49e180 in pairs(BFMManage_7a9eaaf93ef7c8a058d8e7841b726add) do if (BFMManage_3bb367e1f150a93c099e99df8d49e180.typeIndex and BFMManage_3bb367e1f150a93c099e99df8d49e180.typeIndex[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3]) or BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3==1 then table.insert(BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3], BFMManage_3bb367e1f150a93c099e99df8d49e180); end end table.sort(BigFoot_ModIndexList[BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3], BFMManage_b4d7b3f986c55f3f1f2b848d985c0029); end function BFMManage_61beeb4a5cb9901dd878bbead4555a4d() for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModButton"..BFMManage_e914904fab9d05d3f54d52bfc31a0f3f); local BFMManage_9248008bbb6d0ee7ce13f6ee45680051 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."IconTexture"); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."ModName"); local BFMManage_1f8f756ad78ea47fd6befbe88ce49a67 = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."SubModName"); if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.tooltip = nil; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.beingUsed = nil; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.relativedMod = nil; BFMManage_9248008bbb6d0ee7ce13f6ee45680051:Hide(); BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:Hide(); BFMManage_1f8f756ad78ea47fd6befbe88ce49a67:Hide(); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Hide(); end end end function BFMManage_68746fe9efe2a7a4b30b215991e87bda() for _i =1 ,7 do if ( not BigFoot_ModIndexList) or( not BigFoot_ModIndexList[_i] ) then BFMManage_d645bf240a0ab0b1ccc6d69bbd460da5(_i); end end end function ModManagementFrame_OnHide() PlaySound(SOUNDKIT.GS_TITLE_OPTION_EXIT); end function BFMManage_dd43ceb26f2f853fcae22d9619912151() ModManagementFrameLogoFrame:SetAlpha(1.0); ModManagementWelcomeText:SetText(MOD_MANAGEMENT_WELCOME_TEXT); ModManagementWelcomeText:Show(); end local function BFMManage_cd914ae5622723b7e545a1b9e66ccc0b() local __index = 1; local BFMManage_6298f44b9ef6828905d277c87f5e1bbd; BFMManage_6298f44b9ef6828905d277c87f5e1bbd = getglobal("ModOptionSpinBox" .. __index); while(BFMManage_6298f44b9ef6828905d277c87f5e1bbd) do __index = __index + 1; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.used = nil; BFMManage_6298f44b9ef6828905d277c87f5e1bbd:Hide(); BFMManage_6298f44b9ef6828905d277c87f5e1bbd = getglobal("ModOptionSpinBox" .. __index); end end function BFMManage_12a7f20fc74d7ad4ff92606ccc846037() for BFMManage_75c9af9f6623fc55d5d5fa34b493e3bb = 1, BFMManage_6953b2e4d6710c36e11df69825d6ce1f, 1 do local BFMManage_e200ab3f235cf525764c5da4fd03b36d = getglobal("ModOptionCheckButton"..BFMManage_75c9af9f6623fc55d5d5fa34b493e3bb); if ( BFMManage_e200ab3f235cf525764c5da4fd03b36d ) then BFMManage_e200ab3f235cf525764c5da4fd03b36d:Hide(); end end for BFMManage_db73d30f1db62e80f097a2677025f04b = 1, BFMManage_29ab8a01af486ec717579377ead3adb2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModOptionCommandButton"..BFMManage_db73d30f1db62e80f097a2677025f04b); if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Hide(); end end for BFMManage_41edba67019224a34b3ca10ac4c10663 = 1, BFMManage_29ab8a01af486ec717579377ead3adb2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModStaticText"..BFMManage_41edba67019224a34b3ca10ac4c10663); if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Hide(); end end if (ModManagementFrame.current_custom_frame) then local BFMManage_5f0240af34351ab55c84ca442e6d7a80 = getglobal(ModManagementFrame.current_custom_frame); if (BFMManage_5f0240af34351ab55c84ca442e6d7a80) then BFMManage_5f0240af34351ab55c84ca442e6d7a80:Hide(); ModManagementFrame.current_custom_frame = nil; end end BFMManage_cd914ae5622723b7e545a1b9e66ccc0b(); ModManagementFrameScrollFrame:Hide() end function ModManagement_UpdateScroll() if showedEntriesTable and #showedEntriesTable > 9 then ModManagementFrameScrollFrame:Show() else ModManagementFrameScrollFrame:Hide() return end local _offset = FauxScrollFrame_GetOffset(ModManagementFrameScrollFrame); ModManagementFrameScrollAnchorFrame:ClearAllPoints() ModManagementFrameScrollAnchorFrame:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT",0,_offset*30) BigFoot_DelayCall(function() for _,_entry in pairs(showedEntriesTable) do if _entry:GetTop() > ModManagementFrame:GetTop() - 99 then _entry :Hide() elseif _entry:GetBottom() < ModManagementFrame:GetBottom() + 41 then _entry :Hide() else _entry :Show() end end end,0.01) FauxScrollFrame_Update(ModManagementFrameScrollFrame, #showedEntriesTable, 9, 30); end local function BFMManage_c73c5453800fba9b946326d2826e4429(self) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = self:GetParent(); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); local BFMManage_1dc850a376f9ba5d68ff11c1285409f0 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName() .. "EditBox"); local BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:GetText(); local BFMManage_e914904fab9d05d3f54d52bfc31a0f3f; if (BFMManage_7e7860987b220bb966092ef46f8a8f44.list) then local BFMManage_3f50417fb16be9b1078eb68d24fa9c26 = table.maxn(BFMManage_7e7860987b220bb966092ef46f8a8f44.list); for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_3f50417fb16be9b1078eb68d24fa9c26, 1 do if (BFMManage_2361bab8b48b1041ad740bb561b21aee == BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f]) then if (BFMManage_e914904fab9d05d3f54d52bfc31a0f3f - 1 < 1) then BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_3f50417fb16be9b1078eb68d24fa9c26]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_3f50417fb16be9b1078eb68d24fa9c26]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_3f50417fb16be9b1078eb68d24fa9c26]); return; else BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f - 1]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f - 1]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f - 1]); return; end end end BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.range and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1] and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then local BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = tonumber(BigFoot_GetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable) - (BFMManage_7e7860987b220bb966092ef46f8a8f44.range[3] or 1)); if (BFMManage_be741bd2030ad8ad70d14fb34b673ab8 > BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]; elseif (BFMManage_be741bd2030ad8ad70d14fb34b673ab8 < BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]; end BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetNumber(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_be741bd2030ad8ad70d14fb34b673ab8); return; end end local function BFMManage_1b899c0a0b83d0a20ad02a215ef30716(self) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = self:GetParent(); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); local BFMManage_1dc850a376f9ba5d68ff11c1285409f0 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName() .. "EditBox"); local BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:GetText(); local BFMManage_e914904fab9d05d3f54d52bfc31a0f3f; if (BFMManage_7e7860987b220bb966092ef46f8a8f44.list) then local BFMManage_3f50417fb16be9b1078eb68d24fa9c26 = table.maxn(BFMManage_7e7860987b220bb966092ef46f8a8f44.list); for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_3f50417fb16be9b1078eb68d24fa9c26, 1 do if (BFMManage_2361bab8b48b1041ad740bb561b21aee == BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f]) then if (BFMManage_e914904fab9d05d3f54d52bfc31a0f3f + 1 > BFMManage_3f50417fb16be9b1078eb68d24fa9c26) then BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); return; else BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f + 1]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f + 1]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[BFMManage_e914904fab9d05d3f54d52bfc31a0f3f + 1]); return; end end end BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetText(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_7e7860987b220bb966092ef46f8a8f44.list[1]); elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.range and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1] and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then local BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = tonumber(BigFoot_GetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable) + (BFMManage_7e7860987b220bb966092ef46f8a8f44.range[3] or 1)); if (BFMManage_be741bd2030ad8ad70d14fb34b673ab8 > BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]; elseif (BFMManage_be741bd2030ad8ad70d14fb34b673ab8 < BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]; end BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetNumber(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_be741bd2030ad8ad70d14fb34b673ab8); return; end end function BFMManage_2156a3936bcaecf6c9fe7778ad1bad2b(self) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = self:GetParent(); local BFMManage_1dc850a376f9ba5d68ff11c1285409f0 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName() .. "EditBox"); if (BFMManage_7e7860987b220bb966092ef46f8a8f44.range and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1] and BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then local BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = tonumber(BigFoot_GetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable)); local BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_1dc850a376f9ba5d68ff11c1285409f0:GetNumber() or BFMManage_be741bd2030ad8ad70d14fb34b673ab8; if (type(BFMManage_2361bab8b48b1041ad740bb561b21aee) == "number" and BFMManage_2361bab8b48b1041ad740bb561b21aee ~= BFMManage_be741bd2030ad8ad70d14fb34b673ab8) then if (BFMManage_2361bab8b48b1041ad740bb561b21aee < BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]) then BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1]; elseif(BFMManage_2361bab8b48b1041ad740bb561b21aee > BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]; end BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetNumber(BFMManage_2361bab8b48b1041ad740bb561b21aee); BFMManage_7e7860987b220bb966092ef46f8a8f44.callback(BFMManage_2361bab8b48b1041ad740bb561b21aee); BigFoot_SetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable, BFMManage_2361bab8b48b1041ad740bb561b21aee); end end end local function BFMManage_0b1ad7411c6b9fd859ad1f8714d35adc(BFMManage_230883bbc69c983c732642d8c7ec50cb, BFMManage_f4e13e8ecf20422833dd2d694a22bf40) local __index = 1; local BFMManage_6298f44b9ef6828905d277c87f5e1bbd; BFMManage_6298f44b9ef6828905d277c87f5e1bbd = getglobal("ModOptionSpinBox" .. __index); while(BFMManage_6298f44b9ef6828905d277c87f5e1bbd and BFMManage_6298f44b9ef6828905d277c87f5e1bbd.used) do __index = __index + 1; BFMManage_6298f44b9ef6828905d277c87f5e1bbd = getglobal("ModOptionSpinBox" .. __index); end if (not BFMManage_6298f44b9ef6828905d277c87f5e1bbd) then BFMManage_6298f44b9ef6828905d277c87f5e1bbd = CreateFrame("Frame", "ModOptionSpinBox" .. __index, ModManagementFrame); BFMManage_6298f44b9ef6828905d277c87f5e1bbd:SetWidth(200); BFMManage_6298f44b9ef6828905d277c87f5e1bbd:SetHeight(27); local BFMManage_8e3871d69d44135433f03817d7f4d33c = BFMManage_6298f44b9ef6828905d277c87f5e1bbd:CreateFontString("ModOptionSpinBox"..__index.."Title","OVERLAY"); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetFont(MOD_MANAGEMENT_FONT, 14); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetTextColor(1.0, 0.8828125, 0.61328125); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetPoint("LEFT", BFMManage_6298f44b9ef6828905d277c87f5e1bbd, "LEFT", 5, 0); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetWidth(80); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetHeight(24); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetJustifyH("LEFT"); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetJustifyV("CENTER"); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetNonSpaceWrap(true); BFMManage_8e3871d69d44135433f03817d7f4d33c:SetText(BFMManage_230883bbc69c983c732642d8c7ec50cb); local BFMManage_f5b2b4c6f1cb19f168e421abe6e02642 = CreateFrame("Button", "ModOptionSpinBox"..__index.."PrevButton", BFMManage_6298f44b9ef6828905d277c87f5e1bbd); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetWidth(20); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetHeight(20); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Up"); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Down"); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetDisabledTexture("Interface\\Buttons\\UI-SpellbookIcon-PrevPage-Disabled"); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight"); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetPoint("LEFT", BFMManage_8e3871d69d44135433f03817d7f4d33c, "RIGHT", 0, 0); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:RegisterForClicks("LeftButtonUp" ,"RightButtonUp"); BFMManage_f5b2b4c6f1cb19f168e421abe6e02642:SetScript("OnClick", BFMManage_c73c5453800fba9b946326d2826e4429); local BFMManage_1189e83102564b7039e5896816b192a9 = CreateFrame("Button", "ModOptionSpinBox"..__index.."NextButton", BFMManage_6298f44b9ef6828905d277c87f5e1bbd); BFMManage_1189e83102564b7039e5896816b192a9:SetWidth(20); BFMManage_1189e83102564b7039e5896816b192a9:SetHeight(20); BFMManage_1189e83102564b7039e5896816b192a9:SetNormalTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Up"); BFMManage_1189e83102564b7039e5896816b192a9:SetPushedTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Down"); BFMManage_1189e83102564b7039e5896816b192a9:SetDisabledTexture("Interface\\Buttons\\UI-SpellbookIcon-NextPage-Disabled"); BFMManage_1189e83102564b7039e5896816b192a9:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight"); BFMManage_1189e83102564b7039e5896816b192a9:SetPoint("RIGHT", BFMManage_6298f44b9ef6828905d277c87f5e1bbd, "RIGHT", 0, 0); BFMManage_1189e83102564b7039e5896816b192a9:RegisterForClicks("LeftButtonUp" ,"RightButtonUp"); BFMManage_1189e83102564b7039e5896816b192a9:SetScript("OnClick", BFMManage_1b899c0a0b83d0a20ad02a215ef30716); local BFMManage_1dc850a376f9ba5d68ff11c1285409f0 = CreateFrame("EditBox", "ModOptionSpinBox" .. __index .. "EditBox", BFMManage_6298f44b9ef6828905d277c87f5e1bbd, "InputBoxTemplate"); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetJustifyH("CENTER"); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetWidth(70); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetHeight(24); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetPoint("LEFT", BFMManage_f5b2b4c6f1cb19f168e421abe6e02642, "RIGHT", 4, 0); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetScript("OnTextChanged", BFMManage_2156a3936bcaecf6c9fe7778ad1bad2b); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetScript("OnTabPressed", function(self) EditBox_HandleTabbing(BFMManage_1dc850a376f9ba5d68ff11c1285409f0,BFMManage_31064ed6053563897041665f34248604[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.mod]); end); local BFMManage_2361bab8b48b1041ad740bb561b21aee = BFMManage_6298f44b9ef6828905d277c87f5e1bbd:CreateFontString("ModOptionSpinBox"..__index.."Text","OVERLAY"); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetFont(MOD_MANAGEMENT_FONT, 14); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetTextColor(1.0, 0.8828125, 0.61328125); BFMManage_2361bab8b48b1041ad740bb561b21aee:ClearAllPoints(); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetPoint("LEFT", BFMManage_f5b2b4c6f1cb19f168e421abe6e02642, "RIGHT", 0, 0); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetPoint("RIGHT", BFMManage_1189e83102564b7039e5896816b192a9, "LEFT", 0, 0); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetHeight(24); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetJustifyH("CENTER"); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetJustifyV("CENTER"); BFMManage_2361bab8b48b1041ad740bb561b21aee:SetNonSpaceWrap(true); BFMManage_6298f44b9ef6828905d277c87f5e1bbd.used = true; else BFMManage_6298f44b9ef6828905d277c87f5e1bbd.used = true; getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "Title"):SetText(BFMManage_230883bbc69c983c732642d8c7ec50cb); end if (BFMManage_f4e13e8ecf20422833dd2d694a22bf40) then getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "EditBox"):Show(); getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "Text"):Hide(); else getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "Text"):Show(); getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "EditBox"):Hide(); end return BFMManage_6298f44b9ef6828905d277c87f5e1bbd; end local function ModManagement_SetElementActivated(BFMManage_7e7860987b220bb966092ef46f8a8f44, BFMManage_b3d613c3bf1d0980ce6cef3bfaa1125e) if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX") then BFMManage_7e7860987b220bb966092ef46f8a8f44:SetChecked(BFMManage_b3d613c3bf1d0980ce6cef3bfaa1125e); end end local function ModManagement_SetElementText(BFMManage_7e7860987b220bb966092ef46f8a8f44, BFMManage_e6955c64cf39bdb23dc86de1a9ec2117) if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "BUTTON") then BFMManage_7e7860987b220bb966092ef46f8a8f44:SetText(BFMManage_e6955c64cf39bdb23dc86de1a9ec2117); elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX") then getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"):SetText(BFMManage_e6955c64cf39bdb23dc86de1a9ec2117); elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "SPINBOX") then getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"):SetText(BFMManage_e6955c64cf39bdb23dc86de1a9ec2117); elseif(BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "STATIC" ) then _G[BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"]:SetText(BFMManage_e6955c64cf39bdb23dc86de1a9ec2117); if BFMManage_7e7860987b220bb966092ef46f8a8f44.hasFrame then BFMManage_7e7860987b220bb966092ef46f8a8f44:SetHeight(_G[BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"]:GetHeight()+30) else BFMManage_7e7860987b220bb966092ef46f8a8f44:SetHeight(_G[BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"]:GetHeight()+10) end end end local function ModManagement_SetPos(BFMManage_7e7860987b220bb966092ef46f8a8f44, BFMManage_d7383de8409225d06a0cedfd4031edf0) if ( BFMManage_d7383de8409225d06a0cedfd4031edf0 == nil ) then BFMManage_7e7860987b220bb966092ef46f8a8f44:SetPoint("TOPLEFT", "ModManagementFrameScrollAnchorFrame", "TOPLEFT", 310, -110); else local BFMManage_9f652eff74f4ab85c92761b518a48a56 = 0; local BFMManage_ce7eff166556c4f00b1655de0278b678 = 0; if (BFMManage_d7383de8409225d06a0cedfd4031edf0.type == "BUTTON") then BFMManage_9f652eff74f4ab85c92761b518a48a56 = 0; BFMManage_ce7eff166556c4f00b1655de0278b678 = 10; end BFMManage_7e7860987b220bb966092ef46f8a8f44:SetPoint("TOPLEFT", BFMManage_d7383de8409225d06a0cedfd4031edf0, "BOTTOMLEFT", 0 - BFMManage_9f652eff74f4ab85c92761b518a48a56 + (BFMManage_7e7860987b220bb966092ef46f8a8f44.indent - BFMManage_d7383de8409225d06a0cedfd4031edf0.indent) * BFMManage_492cd416987e0d92457bfeb0e6c1d6ea, 2 - BFMManage_ce7eff166556c4f00b1655de0278b678); end end local function ModManagement_IsElementActivated(BFMManage_7e7860987b220bb966092ef46f8a8f44) if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX") then return BFMManage_7e7860987b220bb966092ef46f8a8f44:GetChecked(); else return false; end end local function ModManagement_IsElementEnabled(BFMManage_7e7860987b220bb966092ef46f8a8f44) return BFMManage_7e7860987b220bb966092ef46f8a8f44.enabled; end local function ModManagement_SetElementEnabled(BFMManage_7e7860987b220bb966092ef46f8a8f44, BFMManage_98a5dc0296fddcc9b5b804f038f1994c) if (BFMManage_98a5dc0296fddcc9b5b804f038f1994c) then if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "BUTTON") then BFMManage_7e7860987b220bb966092ef46f8a8f44:Enable(); BFMManage_8e3871d69d44135433f03817d7f4d33c = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); if (BFMManage_8e3871d69d44135433f03817d7f4d33c) then BFMManage_8e3871d69d44135433f03817d7f4d33c:SetTextColor(1.0, 0.8828125, 0.61328125); end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX") then BFMManage_7e7860987b220bb966092ef46f8a8f44:Enable(); BFMManage_8e3871d69d44135433f03817d7f4d33c = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); if (BFMManage_8e3871d69d44135433f03817d7f4d33c) then BFMManage_8e3871d69d44135433f03817d7f4d33c:SetTextColor(1.0, 0.8828125, 0.61328125); end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "SPINBOX") then local BFMManage_12e49080c26b8b9fdea4fa8965254f05 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Title"); local BFMManage_a3c41e6cc8b79e0a0af9a804dcf31ac7 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."PrevButton"); local BFMManage_7363386aabdb3c193c107a03673fdd6f = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."NextButton"); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); BFMManage_12e49080c26b8b9fdea4fa8965254f05:SetTextColor(1.0, 0.8828125, 0.61328125); BFMManage_a3c41e6cc8b79e0a0af9a804dcf31ac7:Enable(); BFMManage_7363386aabdb3c193c107a03673fdd6f:Enable(); BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetTextColor(1.0, 0.8828125, 0.61328125); end BFMManage_7e7860987b220bb966092ef46f8a8f44.enabled = true; else if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "BUTTON") then BFMManage_7e7860987b220bb966092ef46f8a8f44:Disable(); BFMManage_8e3871d69d44135433f03817d7f4d33c = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); if (BFMManage_8e3871d69d44135433f03817d7f4d33c) then BFMManage_8e3871d69d44135433f03817d7f4d33c:SetTextColor(0.5, 0.5, 0.5); end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX") then BFMManage_7e7860987b220bb966092ef46f8a8f44:Disable(); BFMManage_8e3871d69d44135433f03817d7f4d33c = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); if (BFMManage_8e3871d69d44135433f03817d7f4d33c) then BFMManage_8e3871d69d44135433f03817d7f4d33c:SetTextColor(0.5, 0.5, 0.5); end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "SPINBOX") then local BFMManage_12e49080c26b8b9fdea4fa8965254f05 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Title"); local BFMManage_a3c41e6cc8b79e0a0af9a804dcf31ac7 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."PrevButton"); local BFMManage_7363386aabdb3c193c107a03673fdd6f = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."NextButton"); local BFMManage_e6955c64cf39bdb23dc86de1a9ec2117 = getglobal(BFMManage_7e7860987b220bb966092ef46f8a8f44:GetName().."Text"); BFMManage_12e49080c26b8b9fdea4fa8965254f05:SetTextColor(0.5, 0.5, 0.5); BFMManage_a3c41e6cc8b79e0a0af9a804dcf31ac7:Disable(); BFMManage_7363386aabdb3c193c107a03673fdd6f:Disable(); BFMManage_e6955c64cf39bdb23dc86de1a9ec2117:SetTextColor(0.5, 0.5, 0.5); end BFMManage_7e7860987b220bb966092ef46f8a8f44.enabled = false; end end local function ModManagementFrame_ShowEntries(BFMManage_051cc0cd78a11469a8f78d2062970ca9) showedEntriesTable = {} local BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd = 1; local BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 = 1; local BFMManage_84800c910c49a7885e2849db1f6f7930 = 1; local BFMManage_d7383de8409225d06a0cedfd4031edf0 = nil; local BFMManage_aa3cf7c4797f1b0a36fde66430e99b5a = nil; local BFMManage_2b996266ed1edcb97cd09299f15c1b01,BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5,BFMManage_eebc718842fa276e4e78240ae83cf496 if BFMManage_051cc0cd78a11469a8f78d2062970ca9 then for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f, BFMManage_7e7860987b220bb966092ef46f8a8f44 in pairs(BFMManage_051cc0cd78a11469a8f78d2062970ca9) do BFMManage_2b996266ed1edcb97cd09299f15c1b01 = _G["ModOptionCheckButton"..BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd] or CreateFrame("CheckButton","ModOptionCheckButton"..BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd,ModManagementFrame,"ModOptionCheckButtonTemplate"); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = _G["ModOptionCommandButton"..BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89] or CreateFrame("Button","ModOptionCommandButton"..BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89,ModManagementFrame,"ModOptionCommandButtonTemplate"); BFMManage_eebc718842fa276e4e78240ae83cf496 = _G["ModStaticText"..BFMManage_84800c910c49a7885e2849db1f6f7930] or CreateFrame("Frame","ModStaticText"..BFMManage_84800c910c49a7885e2849db1f6f7930,ModManagementFrame,"ModStaticBoxTemplate"); if (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "CHECKBOX" and BFMManage_7e7860987b220bb966092ef46f8a8f44.page == BFMManage_7193346511e6cfd5aa01fac54f2cd168) then if ( BFMManage_2b996266ed1edcb97cd09299f15c1b01 ) then tinsert(showedEntriesTable,BFMManage_2b996266ed1edcb97cd09299f15c1b01) BFMManage_2b996266ed1edcb97cd09299f15c1b01.mod = BFMManage_7e7860987b220bb966092ef46f8a8f44.mod; BFMManage_2b996266ed1edcb97cd09299f15c1b01.variable = BFMManage_7e7860987b220bb966092ef46f8a8f44.variable; BFMManage_2b996266ed1edcb97cd09299f15c1b01.callback = BFMManage_7e7860987b220bb966092ef46f8a8f44.callback; BFMManage_2b996266ed1edcb97cd09299f15c1b01.tooltip = BFMManage_7e7860987b220bb966092ef46f8a8f44.tooltip; BFMManage_2b996266ed1edcb97cd09299f15c1b01.caption = BFMManage_7e7860987b220bb966092ef46f8a8f44.caption; BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent = BFMManage_7e7860987b220bb966092ef46f8a8f44.indent; BFMManage_2b996266ed1edcb97cd09299f15c1b01.type = "CHECKBOX"; BFMManage_2b996266ed1edcb97cd09299f15c1b01.adText = BFMManage_7e7860987b220bb966092ef46f8a8f44.adText; BFMManage_2b996266ed1edcb97cd09299f15c1b01.children = {}; local BFMManage_00ea32ca95b1c71b3fad120c7d1c9386 = getglobal(BFMManage_2b996266ed1edcb97cd09299f15c1b01:GetName().."Text"); local BFMManage_be741bd2030ad8ad70d14fb34b673ab8; if (type(BFMManage_7e7860987b220bb966092ef46f8a8f44.variable) == "function") then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.variable(); else BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BigFoot_GetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable)== 1 and true or false; end if ( BFMManage_7e7860987b220bb966092ef46f8a8f44.filter ) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.filter(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); end ModManagement_SetElementActivated(BFMManage_2b996266ed1edcb97cd09299f15c1b01, BFMManage_be741bd2030ad8ad70d14fb34b673ab8); ModManagement_SetElementText(BFMManage_2b996266ed1edcb97cd09299f15c1b01, BFMManage_7e7860987b220bb966092ef46f8a8f44.caption); ModManagement_SetPos(BFMManage_2b996266ed1edcb97cd09299f15c1b01, BFMManage_d7383de8409225d06a0cedfd4031edf0); BFMManage_2b996266ed1edcb97cd09299f15c1b01:Show(); BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd = BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd + 1; if (BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent >= 1) then if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent - 1]) then table.insert(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent - 1].children, BFMManage_2b996266ed1edcb97cd09299f15c1b01); end if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent - 1] and ModManagement_IsElementActivated(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent - 1]) and ModManagement_IsElementEnabled(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent - 1])) then ModManagement_SetElementEnabled(BFMManage_2b996266ed1edcb97cd09299f15c1b01, true); else ModManagement_SetElementEnabled(BFMManage_2b996266ed1edcb97cd09299f15c1b01, false); end else ModManagement_SetElementEnabled(BFMManage_2b996266ed1edcb97cd09299f15c1b01, true); end BFMManage_d7383de8409225d06a0cedfd4031edf0 = BFMManage_2b996266ed1edcb97cd09299f15c1b01; if (not BFMManage_8ada1e5f1cf8232461562168fef4081a) then BFMManage_8ada1e5f1cf8232461562168fef4081a = {}; end BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_2b996266ed1edcb97cd09299f15c1b01.indent] = BFMManage_2b996266ed1edcb97cd09299f15c1b01; end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "SPINBOX" and BFMManage_7e7860987b220bb966092ef46f8a8f44.page == BFMManage_7193346511e6cfd5aa01fac54f2cd168) then local BFMManage_6298f44b9ef6828905d277c87f5e1bbd = BFMManage_0b1ad7411c6b9fd859ad1f8714d35adc(BFMManage_7e7860987b220bb966092ef46f8a8f44.caption, BFMManage_7e7860987b220bb966092ef46f8a8f44.range); tinsert(showedEntriesTable,BFMManage_6298f44b9ef6828905d277c87f5e1bbd) BFMManage_6298f44b9ef6828905d277c87f5e1bbd.mod = BFMManage_7e7860987b220bb966092ef46f8a8f44.mod; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.variable = BFMManage_7e7860987b220bb966092ef46f8a8f44.variable; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.callback = BFMManage_7e7860987b220bb966092ef46f8a8f44.callback; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.list = BFMManage_7e7860987b220bb966092ef46f8a8f44.list; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.default = BFMManage_7e7860987b220bb966092ef46f8a8f44.default; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.caption = BFMManage_7e7860987b220bb966092ef46f8a8f44.caption; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent = BFMManage_7e7860987b220bb966092ef46f8a8f44.indent; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.filter = BFMManage_7e7860987b220bb966092ef46f8a8f44.filter; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.type = "SPINBOX"; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.children = {}; BFMManage_6298f44b9ef6828905d277c87f5e1bbd.range = BFMManage_7e7860987b220bb966092ef46f8a8f44.range; local BFMManage_1dc850a376f9ba5d68ff11c1285409f0 = getglobal(BFMManage_6298f44b9ef6828905d277c87f5e1bbd:GetName() .. "EditBox"); BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetAutoFocus(false) local BFMManage_be741bd2030ad8ad70d14fb34b673ab8; if (type(BFMManage_7e7860987b220bb966092ef46f8a8f44.variable) == "function") then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.variable(); else BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BigFoot_GetModVariable(BFMManage_7e7860987b220bb966092ef46f8a8f44.mod, BFMManage_7e7860987b220bb966092ef46f8a8f44.variable); end if ( BFMManage_7e7860987b220bb966092ef46f8a8f44.filter ) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_7e7860987b220bb966092ef46f8a8f44.filter(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); end local BFMManage_65e9560969006f78eac65995592e2849; if (BFMManage_7e7860987b220bb966092ef46f8a8f44.list) then for i, v in ipairs(BFMManage_7e7860987b220bb966092ef46f8a8f44.list) do if (v == BFMManage_be741bd2030ad8ad70d14fb34b673ab8) then BFMManage_65e9560969006f78eac65995592e2849 = true; end end elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.range) then if (type(BFMManage_be741bd2030ad8ad70d14fb34b673ab8) == "number" and BFMManage_be741bd2030ad8ad70d14fb34b673ab8 >= BFMManage_7e7860987b220bb966092ef46f8a8f44.range[1] and BFMManage_be741bd2030ad8ad70d14fb34b673ab8 <= BFMManage_7e7860987b220bb966092ef46f8a8f44.range[2]) then BFMManage_65e9560969006f78eac65995592e2849 = true; end end if (not BFMManage_65e9560969006f78eac65995592e2849) then BFMManage_be741bd2030ad8ad70d14fb34b673ab8 = BFMManage_6298f44b9ef6828905d277c87f5e1bbd.default; end ModManagement_SetElementText(BFMManage_6298f44b9ef6828905d277c87f5e1bbd, BFMManage_be741bd2030ad8ad70d14fb34b673ab8); if (BFMManage_7e7860987b220bb966092ef46f8a8f44.range) then BFMManage_1dc850a376f9ba5d68ff11c1285409f0:SetNumber(BFMManage_be741bd2030ad8ad70d14fb34b673ab8); if BFMManage_7e7860987b220bb966092ef46f8a8f44.mod and BFMManage_31064ed6053563897041665f34248604 and BFMManage_31064ed6053563897041665f34248604[BFMManage_7e7860987b220bb966092ef46f8a8f44.mod] then tinsert(BFMManage_31064ed6053563897041665f34248604[BFMManage_7e7860987b220bb966092ef46f8a8f44.mod], BFMManage_1dc850a376f9ba5d68ff11c1285409f0:GetName()); end end ModManagement_SetPos(BFMManage_6298f44b9ef6828905d277c87f5e1bbd, BFMManage_d7383de8409225d06a0cedfd4031edf0); BFMManage_6298f44b9ef6828905d277c87f5e1bbd:Show(); if (BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent >= 1) then if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent - 1]) then table.insert(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent - 1].children, BFMManage_6298f44b9ef6828905d277c87f5e1bbd); end if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent - 1] and ModManagement_IsElementActivated(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent - 1]) and ModManagement_IsElementEnabled(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent - 1])) then ModManagement_SetElementEnabled(BFMManage_6298f44b9ef6828905d277c87f5e1bbd, true); else ModManagement_SetElementEnabled(BFMManage_6298f44b9ef6828905d277c87f5e1bbd, false); end else ModManagement_SetElementEnabled(BFMManage_6298f44b9ef6828905d277c87f5e1bbd, true); end BFMManage_d7383de8409225d06a0cedfd4031edf0 = BFMManage_6298f44b9ef6828905d277c87f5e1bbd; if (not BFMManage_8ada1e5f1cf8232461562168fef4081a) then BFMManage_8ada1e5f1cf8232461562168fef4081a = {}; end BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_6298f44b9ef6828905d277c87f5e1bbd.indent] = BFMManage_6298f44b9ef6828905d277c87f5e1bbd; elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "STATIC" and BFMManage_7e7860987b220bb966092ef46f8a8f44.page==BFMManage_7193346511e6cfd5aa01fac54f2cd168) then tinsert(showedEntriesTable,BFMManage_eebc718842fa276e4e78240ae83cf496) BFMManage_eebc718842fa276e4e78240ae83cf496.type="STATIC"; BFMManage_eebc718842fa276e4e78240ae83cf496.hasFrame = BFMManage_7e7860987b220bb966092ef46f8a8f44.hasFrame; BFMManage_eebc718842fa276e4e78240ae83cf496.indent = BFMManage_7e7860987b220bb966092ef46f8a8f44.indent; ModManagement_SetElementText(BFMManage_eebc718842fa276e4e78240ae83cf496,BFMManage_7e7860987b220bb966092ef46f8a8f44.caption); ModManagement_SetPos(BFMManage_eebc718842fa276e4e78240ae83cf496, BFMManage_d7383de8409225d06a0cedfd4031edf0); if BFMManage_eebc718842fa276e4e78240ae83cf496.hasFrame then BFMManage_eebc718842fa276e4e78240ae83cf496:SetBackdrop({ edgeFile="Interface\\Tooltips\\UI-Tooltip-Border", tile=true, tileSize=16, edgeSize=16, insets= { left = 5, right =5, top = 5, bottom = 5 } }) BFMManage_eebc718842fa276e4e78240ae83cf496:SetBackdropBorderColor(0.6,0.6,0.6,0.8); else BFMManage_eebc718842fa276e4e78240ae83cf496:SetBackdrop(nil) end BFMManage_eebc718842fa276e4e78240ae83cf496:Show(); BFMManage_84800c910c49a7885e2849db1f6f7930 = BFMManage_84800c910c49a7885e2849db1f6f7930 + 1; BFMManage_d7383de8409225d06a0cedfd4031edf0 = BFMManage_eebc718842fa276e4e78240ae83cf496; elseif (BFMManage_7e7860987b220bb966092ef46f8a8f44.type == "BUTTON" and BFMManage_7e7860987b220bb966092ef46f8a8f44.page == BFMManage_7193346511e6cfd5aa01fac54f2cd168) then if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then tinsert(showedEntriesTable,BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.mod = BFMManage_7e7860987b220bb966092ef46f8a8f44.mod; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.callback = BFMManage_7e7860987b220bb966092ef46f8a8f44.callback; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.caption = BFMManage_7e7860987b220bb966092ef46f8a8f44.caption; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent = BFMManage_7e7860987b220bb966092ef46f8a8f44.indent; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.type = "BUTTON"; BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.children = {}; ModManagement_SetElementText(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5, BFMManage_7e7860987b220bb966092ef46f8a8f44.caption); ModManagement_SetPos(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5, BFMManage_d7383de8409225d06a0cedfd4031edf0); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Show(); BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 = BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 + 1; if (BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent >= 1) then if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent - 1]) then table.insert(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent - 1].children, BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5); end if (BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent - 1] and ModManagement_IsElementActivated(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent - 1]) and ModManagement_IsElementEnabled(BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent - 1])) then ModManagement_SetElementEnabled(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5, true); else ModManagement_SetElementEnabled(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5, false); end else ModManagement_SetElementEnabled(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5, true); end BFMManage_d7383de8409225d06a0cedfd4031edf0 = BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5; if (not BFMManage_8ada1e5f1cf8232461562168fef4081a) then BFMManage_8ada1e5f1cf8232461562168fef4081a = {}; end BFMManage_8ada1e5f1cf8232461562168fef4081a[BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.indent] = BFMManage_6298f44b9ef6828905d277c87f5e1bbd; end end end end return BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89,BFMManage_84800c910c49a7885e2849db1f6f7930 end local function ModManagementFrame_HideExtraEntries(BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89,BFMManage_84800c910c49a7885e2849db1f6f7930) local BFMManage_75c9af9f6623fc55d5d5fa34b493e3bb, BFMManage_41edba67019224a34b3ca10ac4c10663, BFMManage_db73d30f1db62e80f097a2677025f04b; for BFMManage_75c9af9f6623fc55d5d5fa34b493e3bb = BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd, BFMManage_6953b2e4d6710c36e11df69825d6ce1f, 1 do local BFMManage_e200ab3f235cf525764c5da4fd03b36d = _G["ModOptionCheckButton"..BFMManage_75c9af9f6623fc55d5d5fa34b493e3bb] if ( BFMManage_e200ab3f235cf525764c5da4fd03b36d ) then BFMManage_e200ab3f235cf525764c5da4fd03b36d:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT", 0, 0); BFMManage_e200ab3f235cf525764c5da4fd03b36d:Hide(); end end for BFMManage_db73d30f1db62e80f097a2677025f04b = BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89, BFMManage_29ab8a01af486ec717579377ead3adb2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = _G["ModOptionCommandButton"..BFMManage_db73d30f1db62e80f097a2677025f04b] if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT", 0, 0); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Hide(); end end for BFMManage_41edba67019224a34b3ca10ac4c10663 = BFMManage_84800c910c49a7885e2849db1f6f7930, BFMManage_29ab8a01af486ec717579377ead3adb2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = _G["ModStaticText"..BFMManage_41edba67019224a34b3ca10ac4c10663]; if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT", 0, 0); BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Hide(); end end end local function BFMManage_a4f54dcbb0efcead0035ed62a5eebdc6(__mod) ModManagementFrameScrollAnchorFrame:ClearAllPoints() ModManagementFrameScrollAnchorFrame:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT",0,0) if ( not BFMManage_7a9eaaf93ef7c8a058d8e7841b726add[__mod] ) then return; end BFMManage_31064ed6053563897041665f34248604[__mod] = {}; if ( ModManagementWelcomeText:IsVisible() ) then ModManagementWelcomeText:Hide(); ModManagementFrameLogoFrame:SetAlpha(0.2); end local BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd = 0 local BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 = 0 local BFMManage_84800c910c49a7885e2849db1f6f7930 = 0 local BFMManage_d7383de8409225d06a0cedfd4031edf0 = nil; local BFMManage_aa3cf7c4797f1b0a36fde66430e99b5a = nil; local BFMManage_bc560b97f6b91d16c35286f4bfd94ad9 = BFMManage_7a9eaaf93ef7c8a058d8e7841b726add[__mod]; BFMManage_cd914ae5622723b7e545a1b9e66ccc0b(); if (type(BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame) == "string") then if (ModManagementFrame.current_custom_frame) then local BFMManage_5f0240af34351ab55c84ca442e6d7a80 = getglobal(ModManagementFrame.current_custom_frame); if (BFMManage_5f0240af34351ab55c84ca442e6d7a80) then BFMManage_5f0240af34351ab55c84ca442e6d7a80:Hide(); end end local BFMManage_411b8aa6d5954c6020f0b9c9e80e847a = getglobal(BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame); if (BFMManage_411b8aa6d5954c6020f0b9c9e80e847a) then BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:SetParent("ModManagementFrame"); BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT", 300, -70); BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:Show(); end ModManagementFrame.current_custom_frame = BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame; else if (ModManagementFrame.current_custom_frame) then local BFMManage_5f0240af34351ab55c84ca442e6d7a80 = getglobal(ModManagementFrame.current_custom_frame); if (BFMManage_5f0240af34351ab55c84ca442e6d7a80) then BFMManage_5f0240af34351ab55c84ca442e6d7a80:Hide(); end ModManagementFrame.current_custom_frame = nil; end if (type(BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame) == "table") then local BFMManage_411b8aa6d5954c6020f0b9c9e80e847a = getglobal(BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame.frame); if (BFMManage_411b8aa6d5954c6020f0b9c9e80e847a) then BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:SetParent("ModManagementFrame"); BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT", BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame.offsetx, BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame.offsety); BFMManage_411b8aa6d5954c6020f0b9c9e80e847a:Show(); ModManagementFrame.current_custom_frame = BFMManage_bc560b97f6b91d16c35286f4bfd94ad9.custom_frame.frame; end end BFMManage_d7383de8409225d06a0cedfd4031edf0 = nil; BFMManage_8ada1e5f1cf8232461562168fef4081a = nil; end BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd ,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 ,BFMManage_84800c910c49a7885e2849db1f6f7930 = ModManagementFrame_ShowEntries(BigFoot_ModOptionConfig[__mod]) ModManagementFrame_HideExtraEntries(BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd ,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 ,BFMManage_84800c910c49a7885e2849db1f6f7930) ModManagement_UpdateScroll() end function ModManagementFrame_SearchMod(keyWord) local searchResult ={} local _modName,_mod local currentIndex = 1 for _modName,_mod in pairs(BFMManage_7a9eaaf93ef7c8a058d8e7841b726add) do if _mod.text and _mod.text:upper():find(keyWord:upper()) then searchResult[currentIndex] = _mod currentIndex = currentIndex +1 elseif _mod.subText and _mod.subText:upper():find(keyWord:upper()) then searchResult[currentIndex] = _mod currentIndex = currentIndex +1 elseif _mod.tooltip and _mod.tooltip:upper():find(keyWord:upper()) then searchResult[currentIndex] = _mod currentIndex = currentIndex +1 end end BigFoot_ModIndexList[8] = searchResult BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(1,8) end local function BFMManage_6b008621e64b5cd35b3a86d36428fbca(entry,keyword) if entry.caption and entry.caption:upper():find(keyword:upper()) then return true end return false end function ModManageMentFrame_SearchPeek(keyword) local _mod for _,_mod in pairs(BFMManage_7a9eaaf93ef7c8a058d8e7841b726add) do if _mod.text and _mod.text:find(keyword) then return true elseif _mod.subText and _mod.subText:find(keyword) then return true elseif _mod.tooltip and _mod.tooltip:find(keyword) then return true end end for _,_mod in pairs(BigFoot_ModOptionConfig) do for _,_entry in pairs(_mod) do if BFMManage_6b008621e64b5cd35b3a86d36428fbca(_entry,keyword) then return true end end end return false end function ModManagementFrame_SearchEntries(keyWord) ModManagementFrameScrollAnchorFrame:ClearAllPoints() ModManagementFrameScrollAnchorFrame:SetPoint("TOPLEFT", "ModManagementFrame", "TOPLEFT",0,0) local searchResult = {} local pivotIndex local entryContainsKeyword =false for _,_mod in pairs(BigFoot_ModOptionConfig) do local currentIndex,entry = 1 entryContainsKeyword =false lastParentEntryIndexContainsKeyword = 0 while currentIndex <= #_mod do entry = _mod[currentIndex] if entry.indent == 0 and lastParentEntryIndexContainsKeyword ~= currentIndex then entryContainsKeyword = false pivotIndex = currentIndex end if not entryContainsKeyword and BFMManage_6b008621e64b5cd35b3a86d36428fbca(entry,keyWord) then entryContainsKeyword = true currentIndex = pivotIndex lastParentEntryIndexContainsKeyword = pivotIndex else if entryContainsKeyword then tinsert(searchResult,entry) end currentIndex = currentIndex + 1 end end end if ( ModManagementWelcomeText:IsVisible() ) then ModManagementWelcomeText:Hide(); ModManagementFrameLogoFrame:SetAlpha(0.2); end local BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd local BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 local BFMManage_84800c910c49a7885e2849db1f6f7930 BFMManage_cd914ae5622723b7e545a1b9e66ccc0b(); BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd ,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 ,BFMManage_84800c910c49a7885e2849db1f6f7930 = ModManagementFrame_ShowEntries(searchResult) ModManagementFrame_HideExtraEntries(BFMManage_2c3bbe3ead1f0327c923570fe1d21cbd ,BFMManage_3a8b5e464751a955ba4c6d2e5a20ec89 ,BFMManage_84800c910c49a7885e2849db1f6f7930) ModManagement_UpdateScroll() end function ModButton_OnClick(self) ModButton_ResetNotify(self) local BFMManage_30b6f278098f3fa7bf562ea6d5620a66 = self:GetChecked(); if ( not self.beingUsed ) then if BFMManage_30b6f278098f3fa7bf562ea6d5620a66 then self:SetChecked(false); end return; end for BFMManage_e914904fab9d05d3f54d52bfc31a0f3f = 1, BFMManage_e96fdf71c0db12f9c3b4f119267ff1d2, 1 do local BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 = getglobal("ModButton"..BFMManage_e914904fab9d05d3f54d52bfc31a0f3f); if ( BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5 and BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetChecked() and BFMManage_e914904fab9d05d3f54d52bfc31a0f3f ~= self:GetID() ) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:SetChecked(false); end end if BFMManage_30b6f278098f3fa7bf562ea6d5620a66 then PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); BFMManage_a4f54dcbb0efcead0035ed62a5eebdc6(self.relativedMod); BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc = self.relativedMod; else self:SetChecked(true); end end function ModManagement_Refresh() BFMManage_a4f54dcbb0efcead0035ed62a5eebdc6(BFMManage_2f354dd9ac8608b8fc606ddd4cb20bdc); end function ModButton_OnEnter(self) self.ModName:SetDrawLayer("Highlight"); if ( self.tooltip ) then ModManagementTooltip:SetOwner(ModManagementFrame, "ANCHOR_TOPLEFT"); local append_mode; if (self.title) then ModManagementTooltip:SetText(self.title, 1.0, 1.0, 1.0); append_mode = 1; end if (append_mode) then ModManagementTooltip:AddLine(self.tooltip, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); else ModManagementTooltip:SetText(self.tooltip, 1.0, 1.0, 1.0, 1, 1); end ModManagementTooltip:Show(); end end function ModButton_OnLeave(self) self.ModName:SetDrawLayer("OVERLAY"); ModManagementTooltip:Hide(); end function ModPrevPageButton_OnClick(self) BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(BFMManage_bdf5390627ce5a4b3179bab176fd094f-1,BFMManage_5312283bf477e6572db2fbf0e8bc478f); PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON); end function ModNextPageButton_OnClick(self) BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(BFMManage_bdf5390627ce5a4b3179bab176fd094f+1,BFMManage_5312283bf477e6572db2fbf0e8bc478f); PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON); end function ModManagement_RegisterMod(__mod, BFMManage_9248008bbb6d0ee7ce13f6ee45680051, BFMManage_e6955c64cf39bdb23dc86de1a9ec2117, BFMManage_1f8f756ad78ea47fd6befbe88ce49a67, BFMManage_6c162b1123a1eb57c1827271b32b6959, BFMManage_8564ebc5c223f37712c092cd808d9ec3,BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3,BFMManage_cc4099afe63abc3cc7e2ee2f7a940ed0,BFMManage_066da22fe5788148e20ca4dee34e4355) if ( not BFMManage_7a9eaaf93ef7c8a058d8e7841b726add ) then BFMManage_7a9eaaf93ef7c8a058d8e7841b726add = {}; end local BFMManage_7e7860987b220bb966092ef46f8a8f44 = {}; BFMManage_7e7860987b220bb966092ef46f8a8f44.name = __mod; BFMManage_7e7860987b220bb966092ef46f8a8f44.texture = BFMManage_9248008bbb6d0ee7ce13f6ee45680051; if (type(BFMManage_e6955c64cf39bdb23dc86de1a9ec2117) == "table") then BFMManage_7e7860987b220bb966092ef46f8a8f44.text = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117[1]; BFMManage_7e7860987b220bb966092ef46f8a8f44.sort = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117[2]; BFMManage_7e7860987b220bb966092ef46f8a8f44.priority = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117[3] or 0; else BFMManage_7e7860987b220bb966092ef46f8a8f44.text = BFMManage_e6955c64cf39bdb23dc86de1a9ec2117; end BFMManage_7e7860987b220bb966092ef46f8a8f44.subText = BFMManage_1f8f756ad78ea47fd6befbe88ce49a67; BFMManage_7e7860987b220bb966092ef46f8a8f44.tooltip = BFMManage_6c162b1123a1eb57c1827271b32b6959; BFMManage_7e7860987b220bb966092ef46f8a8f44.custom_frame = BFMManage_8564ebc5c223f37712c092cd808d9ec3 BFMManage_7e7860987b220bb966092ef46f8a8f44.typeIndex = BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3 BFMManage_7e7860987b220bb966092ef46f8a8f44.needNotify = BFMManage_cc4099afe63abc3cc7e2ee2f7a940ed0 BFMManage_7e7860987b220bb966092ef46f8a8f44.notifyVersion = BFMManage_066da22fe5788148e20ca4dee34e4355 BFMManage_7a9eaaf93ef7c8a058d8e7841b726add[__mod] = BFMManage_7e7860987b220bb966092ef46f8a8f44; end function ModManagement_RegisterStatic(__mod, BFMManage_8e3871d69d44135433f03817d7f4d33c,BFMManage_57a628991f5503e29f2de07253e1cfd2,BFMManage_96717141b19256215532540df5fb2e79) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = {}; BFMManage_7e7860987b220bb966092ef46f8a8f44.type = "STATIC"; BFMManage_7e7860987b220bb966092ef46f8a8f44.name = __mod; BFMManage_7e7860987b220bb966092ef46f8a8f44.caption = BFMManage_8e3871d69d44135433f03817d7f4d33c; BFMManage_7e7860987b220bb966092ef46f8a8f44.indent = BFMManage_57a628991f5503e29f2de07253e1cfd2 or 0; BFMManage_7e7860987b220bb966092ef46f8a8f44.hasFrame = BFMManage_96717141b19256215532540df5fb2e79; if ( not BigFoot_ModOptionConfig[__mod] ) then BigFoot_ModOptionConfig[__mod] = {}; end table.insert(BigFoot_ModOptionConfig[__mod], BFMManage_7e7860987b220bb966092ef46f8a8f44); end function ModManagement_RegisterCheckBox(__mod, BFMManage_8e3871d69d44135433f03817d7f4d33c, BFMManage_6c162b1123a1eb57c1827271b32b6959, BFMManage_be741bd2030ad8ad70d14fb34b673ab8, BFMManage_45843be1bc05f0297089e6a3e93d0ab0, BFMManage_6aec56fd400c2ff60374decd93586868, BFMManage_57a628991f5503e29f2de07253e1cfd2,BFMManage_9128fb85b68a332e600da9dd9685a1fa,BFMManage_f67b3e1e343e6a5b665f8f996d6017d5) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = {}; BFMManage_7e7860987b220bb966092ef46f8a8f44.type = "CHECKBOX"; BFMManage_7e7860987b220bb966092ef46f8a8f44.mod = __mod; BFMManage_7e7860987b220bb966092ef46f8a8f44.caption = BFMManage_8e3871d69d44135433f03817d7f4d33c; BFMManage_7e7860987b220bb966092ef46f8a8f44.tooltip = BFMManage_6c162b1123a1eb57c1827271b32b6959; BFMManage_7e7860987b220bb966092ef46f8a8f44.variable = BFMManage_be741bd2030ad8ad70d14fb34b673ab8; BFMManage_7e7860987b220bb966092ef46f8a8f44.default = BFMManage_45843be1bc05f0297089e6a3e93d0ab0; BFMManage_7e7860987b220bb966092ef46f8a8f44.callback = BFMManage_6aec56fd400c2ff60374decd93586868; BFMManage_7e7860987b220bb966092ef46f8a8f44.indent = BFMManage_57a628991f5503e29f2de07253e1cfd2 or 0; if BFMManage_7e7860987b220bb966092ef46f8a8f44.indent > 0 then local element for i = #BigFoot_ModOptionConfig[__mod], 1 , -1 do element = BigFoot_ModOptionConfig[__mod][i] if element and element.indent == (BFMManage_57a628991f5503e29f2de07253e1cfd2 - 1) then BFMManage_7e7860987b220bb966092ef46f8a8f44.parent = element.variable break; end end end BFMManage_7e7860987b220bb966092ef46f8a8f44.init = BFMManage_9128fb85b68a332e600da9dd9685a1fa or BFMManage_6aec56fd400c2ff60374decd93586868 BFMManage_7e7860987b220bb966092ef46f8a8f44.adText = BFMManage_f67b3e1e343e6a5b665f8f996d6017d5 if ( not BigFoot_ModOptionConfig[__mod] ) then BigFoot_ModOptionConfig[__mod] = {}; end table.insert(BigFoot_ModOptionConfig[__mod], BFMManage_7e7860987b220bb966092ef46f8a8f44); end function ModManagement_RegisterSpinBox(__mod, BFMManage_8e3871d69d44135433f03817d7f4d33c, BFMManage_6c162b1123a1eb57c1827271b32b6959, BFMManage_be741bd2030ad8ad70d14fb34b673ab8, BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3, BFMManage_8e6c2aaeb6b11f026ff5cb0a29aebe68, BFMManage_45843be1bc05f0297089e6a3e93d0ab0, BFMManage_6aec56fd400c2ff60374decd93586868, BFMManage_57a628991f5503e29f2de07253e1cfd2) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = {}; BFMManage_7e7860987b220bb966092ef46f8a8f44.type = "SPINBOX"; BFMManage_7e7860987b220bb966092ef46f8a8f44.mod = __mod; BFMManage_7e7860987b220bb966092ef46f8a8f44.caption = BFMManage_8e3871d69d44135433f03817d7f4d33c; BFMManage_7e7860987b220bb966092ef46f8a8f44.tooltip = BFMManage_6c162b1123a1eb57c1827271b32b6959; BFMManage_7e7860987b220bb966092ef46f8a8f44.variable = BFMManage_be741bd2030ad8ad70d14fb34b673ab8; if (BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3 == "range") then BFMManage_7e7860987b220bb966092ef46f8a8f44.range = BFMManage_8e6c2aaeb6b11f026ff5cb0a29aebe68; elseif (BFMManage_6d5e7d83d8358745ae4dcf61d16bd1f3 == "list") then BFMManage_7e7860987b220bb966092ef46f8a8f44.list = BFMManage_8e6c2aaeb6b11f026ff5cb0a29aebe68; else assert(false,"Invalid spinbox type."); end BFMManage_7e7860987b220bb966092ef46f8a8f44.default = BFMManage_45843be1bc05f0297089e6a3e93d0ab0; BFMManage_7e7860987b220bb966092ef46f8a8f44.callback = BFMManage_6aec56fd400c2ff60374decd93586868; BFMManage_7e7860987b220bb966092ef46f8a8f44.init = BFMManage_6aec56fd400c2ff60374decd93586868; BFMManage_7e7860987b220bb966092ef46f8a8f44.indent = BFMManage_57a628991f5503e29f2de07253e1cfd2 or 0; if ( not BigFoot_ModOptionConfig[__mod] ) then BigFoot_ModOptionConfig[__mod] = {}; end table.insert(BigFoot_ModOptionConfig[__mod], BFMManage_7e7860987b220bb966092ef46f8a8f44); end function ModManagement_RegisterButton(__mod, BFMManage_8e3871d69d44135433f03817d7f4d33c, BFMManage_6aec56fd400c2ff60374decd93586868, BFMManage_6c162b1123a1eb57c1827271b32b6959, BFMManage_57a628991f5503e29f2de07253e1cfd2) local BFMManage_7e7860987b220bb966092ef46f8a8f44 = {}; BFMManage_7e7860987b220bb966092ef46f8a8f44.type = "BUTTON"; BFMManage_7e7860987b220bb966092ef46f8a8f44.mod = __mod; BFMManage_7e7860987b220bb966092ef46f8a8f44.caption = BFMManage_8e3871d69d44135433f03817d7f4d33c; BFMManage_7e7860987b220bb966092ef46f8a8f44.callback = BFMManage_6aec56fd400c2ff60374decd93586868; BFMManage_7e7860987b220bb966092ef46f8a8f44.init = BFMManage_6aec56fd400c2ff60374decd93586868; BFMManage_7e7860987b220bb966092ef46f8a8f44.tooltip = BFMManage_6c162b1123a1eb57c1827271b32b6959; BFMManage_7e7860987b220bb966092ef46f8a8f44.indent = BFMManage_57a628991f5503e29f2de07253e1cfd2 or 0; if ( not BigFoot_ModOptionConfig[__mod] ) then BigFoot_ModOptionConfig[__mod] = {}; end table.insert(BigFoot_ModOptionConfig[__mod], BFMManage_7e7860987b220bb966092ef46f8a8f44); end function ModManagement_GetDefaultValue(__mod, BFMManage_be741bd2030ad8ad70d14fb34b673ab8) if ( BigFoot_ModOptionConfig[__mod] ) then local __index, BFMManage_2361bab8b48b1041ad740bb561b21aee; for __index, BFMManage_2361bab8b48b1041ad740bb561b21aee in pairs(BigFoot_ModOptionConfig[__mod]) do if ( BFMManage_2361bab8b48b1041ad740bb561b21aee.variable == BFMManage_be741bd2030ad8ad70d14fb34b673ab8 ) then return BFMManage_2361bab8b48b1041ad740bb561b21aee.default,BFMManage_2361bab8b48b1041ad740bb561b21aee end end end end local function BFMManage_ac2018d4cf37385c3a2d64513a9e0410(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) local BFMManage_30b6f278098f3fa7bf562ea6d5620a66 = BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetChecked() and 1 or 0; if (type(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.variable) ~= "function") then BigFoot_SetModVariable(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.mod, BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.variable, BFMManage_30b6f278098f3fa7bf562ea6d5620a66); end if (BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.adText) and BFMManage_30b6f278098f3fa7bf562ea6d5620a66~=0 then print(string.format(MOD_MANAGEMENT_AD_TEXT,BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.adText)) end if (BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.callback) then if (ModManagement_IsElementEnabled(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5)) then BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.callback(BFMManage_30b6f278098f3fa7bf562ea6d5620a66); else BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.callback(0); end end if (BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.children) then if (BFMManage_30b6f278098f3fa7bf562ea6d5620a66 == 1 and ModManagement_IsElementEnabled(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5)) then for __index, BFMManage_2361bab8b48b1041ad740bb561b21aee in pairs(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.children) do ModManagement_SetElementEnabled(BFMManage_2361bab8b48b1041ad740bb561b21aee, true); if (BFMManage_2361bab8b48b1041ad740bb561b21aee.type == "CHECKBOX" and BFMManage_2361bab8b48b1041ad740bb561b21aee.callback) then BFMManage_ac2018d4cf37385c3a2d64513a9e0410(BFMManage_2361bab8b48b1041ad740bb561b21aee); elseif (BFMManage_2361bab8b48b1041ad740bb561b21aee.type == "SPINBOX" and BFMManage_2361bab8b48b1041ad740bb561b21aee.callback) then local BFMManage_65e9560969006f78eac65995592e2849; if (BFMManage_2361bab8b48b1041ad740bb561b21aee.list) then for i, v in ipairs(BFMManage_2361bab8b48b1041ad740bb561b21aee.list) do if (v == BFMManage_be741bd2030ad8ad70d14fb34b673ab8) then BFMManage_65e9560969006f78eac65995592e2849 = true; end end end if (BFMManage_65e9560969006f78eac65995592e2849) then BFMManage_2361bab8b48b1041ad740bb561b21aee.callback(BigFoot_GetModVariable(BFMManage_2361bab8b48b1041ad740bb561b21aee.mod, BFMManage_2361bab8b48b1041ad740bb561b21aee.variable)); end end end else for __index, BFMManage_2361bab8b48b1041ad740bb561b21aee in pairs(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.children) do ModManagement_SetElementEnabled(BFMManage_2361bab8b48b1041ad740bb561b21aee, false); if (BFMManage_2361bab8b48b1041ad740bb561b21aee.type == "CHECKBOX" and BFMManage_2361bab8b48b1041ad740bb561b21aee.callback) then BFMManage_ac2018d4cf37385c3a2d64513a9e0410(BFMManage_2361bab8b48b1041ad740bb561b21aee); elseif (BFMManage_2361bab8b48b1041ad740bb561b21aee.type == "SPINBOX" and BFMManage_2361bab8b48b1041ad740bb561b21aee.callback) then BFMManage_2361bab8b48b1041ad740bb561b21aee.callback(nil); end end end end end function ModOptionCheckButton_OnClick(self) BFMManage_ac2018d4cf37385c3a2d64513a9e0410(self); end function ModOptionCommandButton_OnClick(self) if ( self.callback ) then self.callback(); end end function MobElement_Disable(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Disable(); local textOb = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."Text"); if (textOb) then textOb:SetTextColor(0.5, 0.5, 0.5); end BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.enabled = false; end function MobElement_Enable(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5) BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:Enable(); local textOb = getglobal(BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5:GetName().."Text"); if (textOb) then textOb:SetTextColor(1.0, 0.8828125, 0.61328125); end BFMManage_99f3cf2c6f1fdfadb0fd4ab6e0843bf5.enabled = true; end function ModElement_OnEnter(self) if (self.disabled) then return; end local textOb = getglobal(self:GetName().."Text"); textOb:SetTextColor(1.0, 1.0, 1.0); ModManagementTooltip:SetOwner(ModManagementFrame, "ANCHOR_TOPLEFT"); local append_mode; if ( self.tooltip ) then if (self.caption) then ModManagementTooltip:SetText(self.caption, 1.0, 1.0, 1.0); append_mode = 1; end if (append_mode) then ModManagementTooltip:AddLine(self.tooltip, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); else ModManagementTooltip:SetText(self.tooltip, 1.0, 1.0, 1.0, 1, 1); end ModManagementTooltip:Show(); end end function ModElement_OnLeave(self) if (self.diabled) then return; end local textOb = getglobal(self:GetName().."Text"); textOb:SetTextColor(1.0, 0.8828125, 0.61328125); ModManagementTooltip:Hide(); end function ModFrameTab_OnClick(self,index) local tab,texture; for i=1,7,1 do tab = _G["ModManagementFrameTab"..i]; if i ~= index then tab:SetChecked(false); if i == 1 then tab:SetNormalTexture([[Interface\AddOns\BigFoot\Media\tab-nor2]]); texture = tab:GetNormalTexture(); texture:SetTexCoord(0,0.6875,0,0.546875); else tab:SetNormalTexture([[Interface\AddOns\BigFoot\Media\tab-nor]]); texture = tab:GetNormalTexture(); texture:SetTexCoord(0,0.578125,0,0.546875); end else tab:SetChecked(true); if index == 1 then tab:SetNormalTexture([[Interface\AddOns\BigFoot\Media\tab-hit2]]); texture = tab:GetNormalTexture(); texture:SetTexCoord(0,0.6875,0,0.546875); else tab:SetNormalTexture([[Interface\AddOns\BigFoot\Media\tab-hit]]); texture = tab:GetNormalTexture(); texture:SetTexCoord(0,0.578125,0,0.546875); end end end for i = 1,12,1 do _G["ModButton"..i]:SetChecked(false); end BFMManage_b23a59ea1e0dab21ca3d5e217861e62a(1,index); BFMManage_12a7f20fc74d7ad4ff92606ccc846037(); BFMManage_dd43ceb26f2f853fcae22d9619912151(); end 
